<template>
	<view class="page">
		<u-parse :content="policyContent"></u-parse>
	</view>
</template>

<script>
	import {
		privacyPolicyGetByType
	} from '@/api.js'
	export default {
		data() {
			return {
				policyContent: ''
			}
		},
		onShow() {
			this.init()
		},
		methods: {
			init() {
				this.getDetail()
			},
			async getDetail() {
				let res = await privacyPolicyGetByType({
					type: 0
				})
				this.policyContent = res.result.policyContent
			},
		}
	}
</script>

<style scoped lang="scss">
	.page {
		width: 750rpx;
		padding: 20rpx 30rpx;
		box-sizing: border-box;
	}
</style>